<?php

namespace Shahu\Common\common;

class Common
{

    /**
     * 手机加密
     * @param $phone
     * @return array|string|string[]
     */
    public static function phoneEncrypt($phone): array|string
    {
        return substr_replace($phone, '****', 3, 4);
    }
}
